Skip to content

Conversation

@uwezi
Copy link
Contributor

@uwezi uwezi commented Jul 13, 2023

Overview: What does this pull request change?

Motivation and Explanation: Why and how do your changes improve the library?

In its current form the LinearTransformationSceneExample does not allow any additional **kwargs in its __init__ call, but Jupyter's Manim magic automatically adds a renderer= argument.

I just added the kwarg-handling which was missing from the example.

Further Information and Comments

see LinearTransformationScene doesn't work? on Discord

Reviewer Checklist

  • The PR title is descriptive enough for the changelog, and the PR is labeled correctly
  • If applicable: newly added non-private functions and classes have a docstring including a short summary and a PARAMETERS section
  • If applicable: newly added functions and classes are tested

Uwe Zimmermann and others added 3 commits July 11, 2023 22:49
changed from np.asarray(point) to nd.array(point) in order
to make sure that a copy of the array is created even if func
is the identity function lambda pos: pos
…ooks

The Manim magic in Jupyter notebooks adds a "renderer=" parameter to the
__init__ call of the scene, but in its current form the example scene
LinearTransformationSceneExample does not accept any **kwargs and thus creates
an exception.

Added the handling of **kwargs in the example scene.
Copy link
Member

@behackl behackl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@behackl behackl merged commit 8c34447 into ManimCommunity:main Jul 16, 2023
@uwezi uwezi deleted the debug branch July 16, 2023 08:23
@behackl behackl added this to the v0.18.0 milestone Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants